class NewsApiClient extends JsonBodyReadables
Client for interacting with the News API.
- Annotations
- @Slf4j() @Singleton()
- Alphabetic
- By Inheritance
- NewsApiClient
- JsonBodyReadables
- AnyRef
- Any
- Hide All
- Show All
- Public
- Protected
- Private
Instance Constructors
- new NewsApiClient(ws: WSClient, config: Config)
- Annotations
- @Inject()
Value Members
- final def !=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- final def ##: Int
- Definition Classes
- AnyRef → Any
- final def ==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- final def asInstanceOf[T0]: T0
- Definition Classes
- Any
- def clone(): AnyRef
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.CloneNotSupportedException]) @IntrinsicCandidate() @native()
- final def eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- def equals(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef → Any
- final def getClass(): Class[_ <: AnyRef]
- Definition Classes
- AnyRef → Any
- Annotations
- @IntrinsicCandidate() @native()
- def hashCode(): Int
- Definition Classes
- AnyRef → Any
- Annotations
- @IntrinsicCandidate() @native()
- def invokeNewsApi(form: NewsSourcesForm): CompletionStage[JsonNode]
Invokes the News API with the provided news sources form data.
Invokes the News API with the provided news sources form data.
- form
The news sources form data
- returns
A CompletionStage containing the JSON response from the News API
- def invokeNewsApi(form: NewsForm): CompletionStage[JsonNode]
Invokes the News API with the provided search form data.
Invokes the News API with the provided search form data.
- form
The search form data
- returns
A CompletionStage containing the JSON response from the News API
- def invokeNewsApiEverything(searchTerms: String): CompletionStage[JsonNode]
Invokes the News API everything endpoint with the provided search terms.
Invokes the News API everything endpoint with the provided search terms.
- searchTerms
The search terms
- returns
A CompletionStage containing the JSON response from the News API
- def invokeNewsApiSources(): CompletionStage[JsonNode]
Invokes the News API sources endpoint.
Invokes the News API sources endpoint.
- returns
A CompletionStage containing the JSON response from the News API
- final def isInstanceOf[T0]: Boolean
- Definition Classes
- Any
- def json(arg0: ObjectMapper): BodyReadable[JsonNode]
- Definition Classes
- JsonBodyReadables
- def json(): BodyReadable[JsonNode]
- Definition Classes
- JsonBodyReadables
- final def ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- final def notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @IntrinsicCandidate() @native()
- final def notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @IntrinsicCandidate() @native()
- def responseBodyAsJson(response: WSResponse): JsonNode
- Attributes
- private
- final def synchronized[T0](arg0: => T0): T0
- Definition Classes
- AnyRef
- def toString(): String
- Definition Classes
- AnyRef → Any
- final def wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
- final def wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
- final def wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
Deprecated Value Members
- def finalize(): Unit
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.Throwable]) @Deprecated
- Deprecated
(Since version 9)